{include file="common/header"/}
<style>
  .layui-input {
    width: auto;
  }
</style>
<div class="lemo-container">
    <div class="lemo-main">
        <div class="admin-main layui-anim layui-anim-upbit">
            <fieldset class="layui-elem-field layui-field-title">
                <legend>添加</legend>
            </fieldset>
            <form class="layui-form layui-form-pane" lay-filter="form">

                <div class="layui-form-item">
                    <label class="layui-form-label">价格</label>
                    <div class="layui-input-inline">
                        <input type="text" name="price" lay-verify="required" placeholder="请输入价格" class="layui-input">
                    </div>

                </div>

                <div class="layui-form-item">
                  <label class="layui-form-label">日期</label>
                  <div class="layui-input-block">
                    <input type="text" name="price_adjustment_date" class="layui-input" id="ID-laydate-demo" placeholder="请选择日期">
                  </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-inline">
                        <input type="hidden" name="id" value="{$id}" >
                        <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
                        <a data-href="{:url('index')}" class="layui-btn layui-btn-primary back">{:lang('back')}</a>
                    </div>
                </div>

            </form>
        </div>

    </div>
</div>

{include file="common/footer"/}
<script>
    layui.config({
        base: '/static/admin/js/',
        version: true
    }).extend({
        Admin: 'Admin',
    }).use(['form','Admin', 'laydate'], function () {
        var form = layui.form, layer = layui.layer,$= layui.jquery, laydate = layui.laydate;
        

        laydate.render({
          elem: '#ID-laydate-demo',
          type: 'date',
        //   value: new Date(),
        });

        form.render();
    });
</script>